package net.chathu.airgw.packets.redirect 
{
	import flash.utils.ByteArray;
	/**
	 * ...
	 * @author ze
	 */
	public class VersionPacket extends Sendable
	{
		/**
		 * _header
		 */
		private static var _header:int = 0x04;
		
		private var _version:String;
		
		public function VersionPacket(version:String) 
		{
			_version = version;
			init();
		}
		
		public function init():void
		{
			writeByte(_header);
			writeByte(getSize(_version));
			writeString(_version);
		}
		
	}

}